package com.vhall.component.dao.exam;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.vhall.component.entity.exam.dto.ExamListDTO;
import com.vhall.component.entity.exam.vo.ExamConsoleListRspVO;
import com.vhall.component.entity.room.RoomExamLkEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author lsl
 * @since 2021/6/3
 */
@Mapper
@Repository
public interface ExamRoomLkMapper extends BaseMapper<RoomExamLkEntity> {

    IPage<ExamConsoleListRspVO> joinExamsList(Page<ExamListDTO> page, @Param("param") Map<String, Object> param);

    IPage<ExamConsoleListRspVO> joinExamsList2(Page<ExamListDTO> page, @Param("param") Map<String, Object> param);

    IPage<ExamConsoleListRspVO> joinExamsAndRoomsList(Page<ExamListDTO> page, @Param("param") Map<String, Object> param);

}
